import {App} from "vue"
import router from "./router.ts"
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@wangeditor/editor/dist/css/style.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "e-icon-picker/icon/default-icon/symbol.js"; //基本彩色图标库
import elementPlus from "e-icon-picker/icon/ele/element-plus.js"
import 'e-icon-picker/index.css'
import eIconPicker from 'e-icon-picker'
function iconsCom(app:any){
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
        app.component(key, component)
    }
}

export async function START(app:App) {
    app.use(ElementPlus)
    app.use(eIconPicker,{
        addIconList: [...elementPlus,],
        removeIconList: [],
        zIndex: 3100
    })
    iconsCom(app)
    app.use(router)
}